home *** CD-ROM | disk | FTP | other *** search
Unknown | 1999-03-16 | 7.2 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| ChemDraw Template (other/chemDrawTemplate)
| ext
| Unsupported |
100%
| file
| data
| default
| |
100%
| TrID
| TERSE compressed data (PACK, U)
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 02 00 00 00 00 00 03 00 | ff ff 00 00 0a 00 78 78 |........|......xx|
|00000010| 43 6f 6e 74 72 61 63 74 | 12 00 00 00 00 01 00 00 |Contract|........|
|00000020| 00 10 45 78 65 63 75 74 | 65 20 5b 73 6f 75 72 63 |..Execut|e [sourc|
|00000030| 65 5d 01 00 ff ff 00 00 | 15 00 78 78 43 6f 6e 74 |e]......|..xxCont|
|00000040| 72 61 63 74 50 61 72 74 | 69 63 69 70 61 6e 74 01 |ractPart|icipant.|
|00000050| 00 00 00 06 73 6f 75 72 | 63 65 02 00 ff ff 00 00 |....sour|ce......|
|00000060| 15 00 78 78 43 6f 6e 74 | 72 61 63 74 52 65 71 75 |..xxCont|ractRequ|
|00000070| 69 72 65 6d 65 6e 74 03 | 00 00 00 01 00 00 00 09 |irement.|........|
|00000080| 45 78 65 63 75 74 65 28 | 29 05 80 03 00 00 00 00 |Execute(|).......|
|00000090| 00 00 00 08 53 65 72 76 | 65 72 28 29 01 00 ff ff |....Serv|er()....|
|000000a0| 00 00 10 00 78 78 43 6f | 6e 74 72 61 63 74 41 63 |....xxCo|ntractAc|
|000000b0| 74 69 6f 6e 04 00 00 00 | 08 53 65 72 76 65 72 28 |tion....|.Server(|
|000000c0| 29 02 00 00 00 00 00 00 | 00 13 5b 73 6f 75 72 63 |).......|..[sourc|
|000000d0| 65 5d 2e 45 78 65 63 75 | 74 65 28 29 3b 01 00 00 |e].Execu|te();...|
|000000e0| 00 12 5b 73 6f 75 72 63 | 65 5d 2e 45 78 65 63 75 |..[sourc|e].Execu|
|000000f0| 74 65 28 29 00 00 11 53 | 74 6f 72 65 64 20 50 72 |te()...S|tored Pr|
|00000100| 6f 63 65 64 75 72 65 73 | 00 00 00 00 00 00 04 00 |ocedures|........|
|00000110| 00 00 01 00 00 00 01 00 | 08 80 04 00 00 00 06 53 |........|.......S|
|00000120| 65 72 76 65 72 02 00 00 | 00 00 00 00 00 00 01 00 |erver...|........|
|00000130| 00 00 00 ba a3 34 a7 70 | 5c d2 11 90 e8 00 60 08 |.....4.p|\.....`.|
|00000140| 8f 47 c4 01 00 00 00 24 | 33 37 37 41 43 34 33 30 |.G.....$|377AC430|
|00000150| 2d 36 32 31 31 2d 31 31 | 44 32 2d 38 31 31 37 2d |-6211-11|D2-8117-|
|00000160| 30 30 36 30 30 38 43 38 | 36 43 32 35 03 33 2e 30 |006008C8|6C25.3.0|
|00000170| ff b1 02 44 65 73 63 72 | 69 70 74 69 6f 6e 3a 0d |...Descr|iption:.|
|00000180| 0a 45 78 65 63 75 74 65 | 73 20 61 20 73 74 6f 72 |.Execute|s a stor|
|00000190| 65 64 20 70 72 6f 63 65 | 64 75 72 65 20 74 68 61 |ed proce|dure tha|
|000001a0| 74 20 69 73 20 74 68 65 | 20 63 6f 6e 74 65 6e 74 |t is the| content|
|000001b0| 20 73 6f 75 72 63 65 20 | 66 6f 72 20 61 20 63 6f | source |for a co|
|000001c0| 6d 6d 61 6e 64 20 6f 62 | 6a 65 63 74 2e 20 20 0d |mmand ob|ject. .|
|000001d0| 0a 54 68 69 73 20 63 6f | 6e 74 72 61 63 74 20 6d |.This co|ntract m|
|000001e0| 75 73 74 20 62 65 20 75 | 73 65 64 20 74 6f 20 65 |ust be u|sed to e|
|000001f0| 78 65 63 75 74 65 20 61 | 6e 79 20 63 68 61 6e 67 |xecute a|ny chang|
|00000200| 65 73 20 6d 61 64 65 20 | 74 6f 20 74 68 65 20 70 |es made |to the p|
|00000210| 61 72 61 6d 65 74 65 72 | 73 20 6f 66 20 74 68 65 |arameter|s of the|
|00000220| 20 73 74 6f 72 65 64 20 | 70 72 6f 63 65 64 75 72 | stored |procedur|
|00000230| 65 73 2e 20 20 20 4e 6f | 74 65 20 74 68 61 74 20 |es. No|te that |
|00000240| 69 66 20 74 68 65 72 65 | 20 61 72 65 20 61 6c 73 |if there| are als|
|00000250| 6f 20 53 51 4c 20 70 61 | 72 61 6d 65 74 65 72 20 |o SQL pa|rameter |
|00000260| 63 6f 6e 74 72 61 63 74 | 73 20 61 70 70 6c 69 65 |contract|s applie|
|00000270| 64 20 74 6f 20 74 68 65 | 20 63 6f 6d 6d 61 6e 64 |d to the| command|
|00000280| 20 6f 62 6a 65 63 74 2c | 20 74 68 65 73 65 20 6d | object,| these m|
|00000290| 75 73 74 20 62 65 20 63 | 61 6c 6c 65 64 20 70 72 |ust be c|alled pr|
|000002a0| 69 6f 72 20 74 6f 20 22 | 45 78 65 63 75 74 65 2e |ior to "|Execute.|
|000002b0| 22 20 20 41 6c 73 6f 2c | 20 69 66 20 61 20 63 6f |" Also,| if a co|
|000002c0| 6d 6d 61 6e 64 20 6f 62 | 6a 65 63 74 20 69 73 20 |mmand ob|ject is |
|000002d0| 6c 69 6e 6b 65 64 20 74 | 6f 20 61 20 72 65 63 6f |linked t|o a reco|
|000002e0| 72 64 73 65 74 2c 20 74 | 68 69 73 20 22 45 78 65 |rdset, t|his "Exe|
|000002f0| 63 75 74 65 22 20 63 6f | 6e 74 72 61 63 74 20 6d |cute" co|ntract m|
|00000300| 75 73 74 20 62 65 20 63 | 61 6c 6c 65 64 20 62 65 |ust be c|alled be|
|00000310| 66 6f 72 65 20 74 68 65 | 20 22 4c 69 6e 6b 22 20 |fore the| "Link" |
|00000320| 63 6f 6e 74 72 61 63 74 | 2e 20 0d 0a 0d 0a 50 61 |contract|. ....Pa|
|00000330| 72 61 6d 65 74 65 72 73 | 3a 0d 0a 6e 6f 6e 65 0d |rameters|:..none.|
|00000340| 0a 0d 0a 54 79 70 69 63 | 61 6c 20 50 61 72 74 69 |...Typic|al Parti|
|00000350| 63 69 70 61 6e 74 73 3a | 0d 0a 5b 53 6f 75 72 63 |cipants:|..[Sourc|
|00000360| 65 5d 20 2d 20 43 6f 6d | 6d 61 6e 64 20 6f 62 6a |e] - Com|mand obj|
|00000370| 65 63 74 0d 0a 0d 0a 46 | 6f 72 20 6d 6f 72 65 20 |ect....F|or more |
|00000380| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 6f 6e 20 63 |informat|ion on c|
|00000390| 6f 6e 74 72 61 63 74 73 | 20 6f 66 20 74 68 69 73 |ontracts| of this|
|000003a0| 20 63 61 74 65 67 6f 72 | 79 2c 20 70 6c 65 61 73 | categor|y, pleas|
|000003b0| 65 20 72 65 66 65 72 20 | 74 6f 0d 0a 53 74 6f 72 |e refer |to..Stor|
|000003c0| 65 64 50 72 6f 63 65 64 | 75 72 65 73 2e 64 6f 63 |edProced|ures.doc|
|000003d0| 0d 0a 54 68 69 73 20 66 | 69 6c 65 20 69 73 20 61 |..This f|ile is a|
|000003e0| 76 61 69 6c 61 62 6c 65 | 20 69 6e 20 74 68 65 20 |vailable| in the |
|000003f0| 43 6f 6e 74 72 61 63 74 | 73 20 66 6f 6c 64 65 72 |Contract|s folder|
|00000400| 20 69 6e 20 74 68 65 20 | 44 72 75 6d 62 65 61 74 | in the |Drumbeat|
|00000410| 20 64 69 72 65 63 74 6f | 72 79 2e 0d 0a 56 31 30 | directo|ry...V10|
|00000420| 5f 33 30 2e 01 80 12 00 | 00 00 19 4c 69 6e 6b 20 |_30.....|...Link |
|00000430| 5b 74 61 72 67 65 74 5d | 20 74 6f 20 5b 73 6f 75 |[target]| to [sou|
|00000440| 72 63 65 5d 00 00 00 00 | 00 02 00 03 80 01 00 00 |rce]....|........|
|00000450| 00 06 74 61 72 67 65 74 | 01 00 05 80 03 00 00 00 |..target|........|
|00000460| 00 00 00 00 0c 42 65 66 | 6f 72 65 4f 70 65 6e 28 |.....Bef|oreOpen(|
|00000470| 29 01 00 08 80 04 00 00 | 00 0c 42 65 66 6f 72 65 |).......|..Before|
|00000480| 4f 70 65 6e 28 29 02 00 | 00 00 00 00 00 00 1e 5b |Open()..|.......[|
|00000490| 74 61 72 67 65 74 5d 2e | 4f 70 65 6e 20 3d 20 4d |target].|Open = M|
|000004a0| 79 43 6f 6d 6d 61 6e 64 | 4f 70 65 6e 3b 01 00 00 |yCommand|Open;...|
|000004b0| 00 1d 5b 74 61 72 67 65 | 74 5d 2e 4f 70 65 6e 20 |..[targe|t].Open |
|000004c0| 3d 20 4d 79 43 6f 6d 6d | 61 6e 64 4f 70 65 6e 03 |= MyComm|andOpen.|
|000004d0| 80 01 00 00 00 06 73 6f | 75 72 63 65 01 00 05 80 |......so|urce....|
|000004e0| 03 00 00 00 01 00 00 00 | 09 45 78 65 63 75 74 65 |........|.Execute|
|000004f0| 28 29 00 00 00 00 11 53 | 74 6f 72 65 64 20 50 72 |().....S|tored Pr|
|00000500| 6f 63 65 64 75 72 65 73 | 00 00 00 00 00 00 04 00 |ocedures|........|
|00000510| 00 00 01 00 00 00 01 00 | 08 80 04 00 00 00 06 53 |........|.......S|
|00000520| 65 72 76 65 72 02 00 00 | 00 00 00 00 00 ff 20 02 |erver...|...... .|
|00000530| 66 75 6e 63 74 69 6f 6e | 20 4d 79 43 6f 6d 6d 61 |function| MyComma|
|00000540| 6e 64 4f 70 65 6e 28 29 | 0d 0a 7b 0d 0a 09 5b 74 |ndOpen()|..{...[t|
|00000550| 61 72 67 65 74 5d 2e 52 | 53 20 3d 20 5b 73 6f 75 |arget].R|S = [sou|
|00000560| 72 63 65 5d 2e 52 53 3b | 0d 0a 20 0d 0a 20 2f 2a |rce].RS;|.. .. /*|
|00000570| 20 66 69 6e 64 20 61 6e | 20 6f 70 65 6e 20 72 65 | find an| open re|
|00000580| 63 6f 72 64 73 65 74 20 | 2a 2f 0d 0a 09 77 68 69 |cordset |*/...whi|
|00000590| 6c 65 28 20 28 5b 74 61 | 72 67 65 74 5d 2e 52 53 |le( ([ta|rget].RS|
|000005a0| 2e 53 74 61 74 65 20 21 | 3d 20 31 29 20 26 26 20 |.State !|= 1) && |
|000005b0| 28 5b 74 61 72 67 65 74 | 5d 2e 52 53 20 21 3d 20 |([target|].RS != |
|000005c0| 6e 75 6c 6c 29 29 0d 0a | 20 7b 0d 0a 20 20 20 20 |null))..| {.. |
|000005d0| 5b 74 61 72 67 65 74 5d | 2e 52 53 20 3d 20 5b 74 |[target]|.RS = [t|
|000005e0| 61 72 67 65 74 5d 2e 52 | 53 2e 4e 65 78 74 52 65 |arget].R|S.NextRe|
|000005f0| 63 6f 72 64 73 65 74 28 | 29 3b 0d 0a 20 20 20 20 |cordset(|);.. |
|00000600| 5b 73 6f 75 72 63 65 5d | 2e 52 53 20 3d 20 5b 74 |[source]|.RS = [t|
|00000610| 61 72 67 65 74 5d 2e 52 | 53 3b 0d 0a 20 7d 0d 0a |arget].R|S;.. }..|
|00000620| 0d 0a 09 69 66 20 28 5b | 74 61 72 67 65 74 5d 2e |...if ([|target].|
|00000630| 52 53 2e 53 74 61 74 65 | 20 3d 3d 20 31 2f 2a 61 |RS.State| == 1/*a|
|00000640| 64 53 74 61 74 65 4f 70 | 65 6e 2a 2f 29 0d 0a 09 |dStateOp|en*/)...|
|00000650| 7b 0d 0a 09 09 5b 74 61 | 72 67 65 74 5d 2e 53 75 |{....[ta|rget].Su|
|00000660| 70 70 6f 72 74 73 41 70 | 70 72 6f 78 50 6f 73 69 |pportsAp|proxPosi|
|00000670| 74 69 6f 6e 20 3d 20 5b | 74 61 72 67 65 74 5d 2e |tion = [|target].|
|00000680| 52 53 2e 53 75 70 70 6f | 72 74 73 28 30 78 34 30 |RS.Suppo|rts(0x40|
|00000690| 30 30 2f 2a 61 64 41 70 | 70 72 6f 78 50 6f 73 69 |00/*adAp|proxPosi|
|000006a0| 74 69 6f 6e 2a 2f 29 3b | 0d 0a 09 09 5b 74 61 72 |tion*/);|....[tar|
|000006b0| 67 65 74 5d 2e 53 75 70 | 70 6f 72 74 73 4d 6f 76 |get].Sup|portsMov|
|000006c0| 65 20 3d 20 5b 74 61 72 | 67 65 74 5d 2e 52 53 2e |e = [tar|get].RS.|
|000006d0| 53 75 70 70 6f 72 74 73 | 28 30 78 32 30 30 2f 2a |Supports|(0x200/*|
|000006e0| 61 64 4d 6f 76 65 50 72 | 65 76 69 6f 75 73 2a 2f |adMovePr|evious*/|
|000006f0| 29 3b 0d 0a 09 09 5b 74 | 61 72 67 65 74 5d 2e 53 |);....[t|arget].S|
|00000700| 75 70 70 6f 72 74 73 43 | 6f 75 6e 74 20 3d 20 5b |upportsC|ount = [|
|00000710| 74 61 72 67 65 74 5d 2e | 52 53 2e 52 65 63 6f 72 |target].|RS.Recor|
|00000720| 64 43 6f 75 6e 74 20 21 | 3d 20 2d 31 3b 0d 0a 09 |dCount !|= -1;...|
|00000730| 09 5b 74 61 72 67 65 74 | 5d 2e 52 65 73 74 6f 72 |.[target|].Restor|
|00000740| 65 53 74 61 74 65 28 29 | 3b 0d 0a 09 7d 0d 0a 7d |eState()|;...}..}|
|00000750| 01 00 00 00 ff e6 01 53 | 75 62 20 4d 79 43 6f 6d |.......S|ub MyCom|
|00000760| 6d 61 6e 64 4f 70 65 6e | 28 29 0d 0a 09 5b 74 61 |mandOpen|()...[ta|
|00000770| 72 67 65 74 5d 2e 53 65 | 74 52 53 28 5b 73 6f 75 |rget].Se|tRS([sou|
|00000780| 72 63 65 5d 2e 52 53 29 | 0d 0a 0d 0a 20 72 65 6d |rce].RS)|.... rem|
|00000790| 20 66 69 6e 64 20 61 6e | 20 6f 70 65 6e 20 72 65 | find an| open re|
|000007a0| 63 6f 72 64 73 65 74 20 | 0d 0a 09 57 68 69 6c 65 |cordset |...While|
|000007b0| 20 28 5b 74 61 72 67 65 | 74 5d 2e 52 53 2e 53 74 | ([targe|t].RS.St|
|000007c0| 61 74 65 20 3c 3e 20 31 | 29 20 41 4e 44 20 28 5b |ate <> 1|) AND ([|
|000007d0| 74 61 72 67 65 74 5d 2e | 52 53 20 3c 3e 20 6e 75 |target].|RS <> nu|
|000007e0| 6c 6c 29 0d 0a 20 20 20 | 20 5b 74 61 72 67 65 74 |ll).. | [target|
|000007f0| 5d 2e 52 53 20 3d 20 5b | 74 61 72 67 65 74 5d 2e |].RS = [|target].|
|00000800| 52 53 2e 4e 65 78 74 52 | 65 63 6f 72 64 73 65 74 |RS.NextR|ecordset|
|00000810| 28 29 0d 0a 20 20 20 20 | 5b 73 6f 75 72 63 65 5d |().. |[source]|
|00000820| 2e 52 53 20 3d 20 5b 74 | 61 72 67 65 74 5d 2e 52 |.RS = [t|arget].R|
|00000830| 53 0d 0a 20 57 65 6e 64 | 0d 0a 0d 0a 09 69 66 20 |S.. Wend|.....if |
|00000840| 28 5b 74 61 72 67 65 74 | 5d 2e 52 53 2e 53 74 61 |([target|].RS.Sta|
|00000850| 74 65 20 3d 31 29 20 74 | 68 65 6e 0d 0a 09 09 5b |te =1) t|hen....[|
|00000860| 74 61 72 67 65 74 5d 2e | 53 75 70 70 6f 72 74 73 |target].|Supports|
|00000870| 41 70 70 72 6f 78 50 6f | 73 69 74 69 6f 6e 20 3d |ApproxPo|sition =|
|00000880| 20 5b 74 61 72 67 65 74 | 5d 2e 52 53 2e 53 75 70 | [target|].RS.Sup|
|00000890| 70 6f 72 74 73 28 31 36 | 33 38 34 29 0d 0a 09 09 |ports(16|384)....|
|000008a0| 5b 74 61 72 67 65 74 5d | 2e 53 75 70 70 6f 72 74 |[target]|.Support|
|000008b0| 73 4d 6f 76 65 20 3d 20 | 5b 74 61 72 67 65 74 5d |sMove = |[target]|
|000008c0| 2e 52 53 2e 53 75 70 70 | 6f 72 74 73 28 35 31 32 |.RS.Supp|orts(512|
|000008d0| 29 0d 0a 09 09 5b 74 61 | 72 67 65 74 5d 2e 53 75 |)....[ta|rget].Su|
|000008e0| 70 70 6f 72 74 73 43 6f | 75 6e 74 20 3d 20 28 5b |pportsCo|unt = ([|
|000008f0| 74 61 72 67 65 74 5d 2e | 52 53 2e 52 65 63 6f 72 |target].|RS.Recor|
|00000900| 64 43 6f 75 6e 74 20 3c | 3e 20 2d 31 29 0d 0a 09 |dCount <|> -1)...|
|00000910| 09 5b 74 61 72 67 65 74 | 5d 2e 52 65 73 74 6f 72 |.[target|].Restor|
|00000920| 65 53 74 61 74 65 28 29 | 0d 0a 20 65 6e 64 20 69 |eState()|.. end i|
|00000930| 66 20 20 20 0d 0a 45 6e | 64 20 53 75 62 66 ee 4d |f ..En|d Subf.M|
|00000940| 51 2f 86 d2 11 91 0e 00 | 60 08 8f 47 c4 01 00 00 |Q/......|`..G....|
|00000950| 00 24 33 37 37 41 43 34 | 33 30 2d 36 32 31 31 2d |.$377AC4|30-6211-|
|00000960| 31 31 44 32 2d 38 31 31 | 37 2d 30 30 36 30 30 38 |11D2-811|7-006008|
|00000970| 43 38 36 43 32 35 03 33 | 2e 30 ff d4 02 44 65 73 |C86C25.3|.0...Des|
|00000980| 63 72 69 70 74 69 6f 6e | 3a 0d 0a 54 68 69 73 20 |cription|:..This |
|00000990| 63 6f 6e 74 72 61 63 74 | 20 68 61 73 20 61 20 76 |contract| has a v|
|000009a0| 65 72 79 20 73 70 65 63 | 69 66 69 63 20 75 73 65 |ery spec|ific use|
|000009b0| 3a 20 20 74 6f 20 6c 69 | 6e 6b 20 61 20 72 65 63 |: to li|nk a rec|
|000009c0| 6f 72 64 73 65 74 20 61 | 6e 64 20 63 6f 6d 6d 61 |ordset a|nd comma|
|000009d0| 6e 64 20 6f 62 6a 65 63 | 74 20 77 68 6f 73 65 20 |nd objec|t whose |
|000009e0| 63 6f 6e 74 65 6e 74 20 | 61 72 65 20 62 61 73 65 |content |are base|
|000009f0| 64 20 6f 6e 20 74 68 65 | 20 73 61 6d 65 20 73 74 |d on the| same st|
|00000a00| 6f 72 65 64 20 70 72 6f | 63 65 64 75 72 65 2e 20 |ored pro|cedure. |
|00000a10| 20 54 68 69 73 20 77 69 | 6c 6c 20 6f 6e 6c 79 20 | This wi|ll only |
|00000a20| 68 61 70 70 65 6e 20 69 | 6e 20 63 61 73 65 73 20 |happen i|n cases |
|00000a30| 77 68 65 72 65 20 61 6e | 20 75 6e 64 65 72 6c 79 |where an| underly|
|00000a40| 69 6e 67 20 73 74 6f 72 | 65 64 20 70 72 6f 63 65 |ing stor|ed proce|
|00000a50| 64 75 72 65 20 72 65 74 | 75 72 6e 73 20 62 6f 74 |dure ret|urns bot|
|00000a60| 68 20 61 20 72 65 73 75 | 6c 74 20 73 65 74 20 28 |h a resu|lt set (|
|00000a70| 61 6e 64 20 74 68 75 73 | 20 63 61 6e 20 62 65 20 |and thus| can be |
|00000a80| 74 68 65 20 63 6f 6e 74 | 65 6e 74 20 73 6f 75 72 |the cont|ent sour|
|00000a90| 63 65 20 66 6f 72 20 61 | 20 72 65 63 6f 72 64 73 |ce for a| records|
|00000aa0| 65 74 29 20 61 6e 64 20 | 61 6e 20 6f 75 74 70 75 |et) and |an outpu|
|00000ab0| 74 20 70 61 72 61 6d 65 | 74 65 72 20 28 74 68 65 |t parame|ter (the|
|00000ac0| 20 63 6f 6e 74 65 6e 74 | 20 73 6f 75 72 63 65 20 | content| source |
|00000ad0| 66 6f 72 20 61 20 63 6f | 6d 6d 61 6e 64 20 6f 62 |for a co|mmand ob|
|00000ae0| 6a 65 63 74 29 2e 20 20 | 54 68 65 20 61 70 70 6c |ject). |The appl|
|00000af0| 69 63 61 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 63 |ication |of the c|
|00000b00| 6f 6e 74 72 61 63 74 20 | 70 72 65 76 65 6e 74 73 |ontract |prevents|
|00000b10| 20 74 68 65 20 64 61 74 | 61 62 61 73 65 20 63 6f | the dat|abase co|
|00000b20| 6e 6e 65 63 74 69 6f 6e | 20 66 72 6f 6d 20 74 61 |nnection| from ta|
|00000b30| 6b 69 6e 67 20 70 6c 61 | 63 65 20 74 77 69 63 65 |king pla|ce twice|
|00000b40| 2e 0d 0a 0d 0a 50 61 72 | 61 6d 65 74 65 72 73 3a |.....Par|ameters:|
|00000b50| 0d 0a 6e 6f 6e 65 0d 0a | 0d 0a 54 79 70 69 63 61 |..none..|..Typica|
|00000b60| 6c 20 50 61 72 74 69 63 | 69 70 61 6e 74 73 3a 0d |l Partic|ipants:.|
|00000b70| 0a 5b 53 6f 75 72 63 65 | 5d 20 2d 20 63 6f 6d 6d |.[Source|] - comm|
|00000b80| 61 6e 64 20 6f 62 6a 65 | 63 74 0d 0a 5b 54 61 72 |and obje|ct..[Tar|
|00000b90| 67 65 74 5d 20 2d 20 72 | 65 63 6f 72 64 73 65 74 |get] - r|ecordset|
|00000ba0| 0d 0a 0d 0a 46 6f 72 20 | 6d 6f 72 65 20 69 6e 66 |....For |more inf|
|00000bb0| 6f 72 6d 61 74 69 6f 6e | 20 6f 6e 20 63 6f 6e 74 |ormation| on cont|
|00000bc0| 72 61 63 74 73 20 6f 66 | 20 74 68 69 73 20 63 61 |racts of| this ca|
|00000bd0| 74 65 67 6f 72 79 2c 20 | 70 6c 65 61 73 65 20 72 |tegory, |please r|
|00000be0| 65 66 65 72 20 74 6f 0d | 0a 53 74 6f 72 65 64 50 |efer to.|.StoredP|
|00000bf0| 72 6f 63 65 64 75 72 65 | 73 2e 64 6f 63 0d 0a 54 |rocedure|s.doc..T|
|00000c00| 68 69 73 20 66 69 6c 65 | 20 69 73 20 61 76 61 69 |his file| is avai|
|00000c10| 6c 61 62 6c 65 20 69 6e | 20 74 68 65 20 43 6f 6e |lable in| the Con|
|00000c20| 74 72 61 63 74 73 20 66 | 6f 6c 64 65 72 20 69 6e |tracts f|older in|
|00000c30| 20 74 68 65 20 44 72 75 | 6d 62 65 61 74 20 64 69 | the Dru|mbeat di|
|00000c40| 72 65 63 74 6f 72 79 2e | 0d 0a 56 31 30 5f 33 30 |rectory.|..V10_30|
|00000c50| 2e 01 80 12 00 00 00 3b | 46 69 6e 64 20 41 63 74 |.......;|Find Act|
|00000c60| 69 76 65 20 52 65 63 6f | 72 64 73 65 74 20 69 66 |ive Reco|rdset if|
|00000c70| 20 6d 75 6c 69 74 70 6c | 65 20 72 65 73 75 6c 74 | mulitpl|e result|
|00000c80| 20 73 65 74 73 20 77 65 | 72 65 20 72 65 74 75 72 | sets we|re retur|
|00000c90| 6e 65 64 01 00 00 00 3b | 46 69 6e 64 20 41 63 74 |ned....;|Find Act|
|00000ca0| 69 76 65 20 52 65 63 6f | 72 64 73 65 74 20 69 66 |ive Reco|rdset if|
|00000cb0| 20 6d 75 6c 69 74 70 6c | 65 20 72 65 73 75 6c 74 | mulitpl|e result|
|00000cc0| 20 73 65 74 73 20 77 65 | 72 65 20 72 65 74 75 72 | sets we|re retur|
|00000cd0| 6e 65 64 01 00 03 80 01 | 00 00 00 09 72 65 63 6f |ned.....|....reco|
|00000ce0| 72 64 73 65 74 04 00 05 | 80 03 00 00 00 00 00 00 |rdset...|........|
|00000cf0| 00 08 53 65 72 76 65 72 | 28 29 05 80 03 00 00 00 |..Server|()......|
|00000d00| 00 00 00 00 0c 42 65 66 | 6f 72 65 4f 70 65 6e 28 |.....Bef|oreOpen(|
|00000d10| 29 05 80 03 00 00 00 01 | 00 00 00 07 49 73 42 4f |).......|....IsBO|
|00000d20| 46 28 29 05 80 03 00 00 | 00 01 00 00 00 07 49 73 |F().....|......Is|
|00000d30| 45 4f 46 28 29 02 00 08 | 80 04 00 00 00 0c 42 65 |EOF()...|......Be|
|00000d40| 66 6f 72 65 4f 70 65 6e | 28 29 02 00 00 00 00 00 |foreOpen|()......|
|00000d50| 00 00 29 5b 72 65 63 6f | 72 64 73 65 74 5d 2e 4f |..)[reco|rdset].O|
|00000d60| 70 65 6e 20 3d 20 4d 75 | 6c 74 69 70 6c 65 52 65 |pen = Mu|ltipleRe|
|00000d70| 73 75 6c 74 73 65 74 4f | 70 65 6e 3b 01 00 00 00 |sultsetO|pen;....|
|00000d80| 28 5b 72 65 63 6f 72 64 | 73 65 74 5d 2e 4f 70 65 |([record|set].Ope|
|00000d90| 6e 20 3d 20 4d 75 6c 74 | 69 70 6c 65 52 65 73 75 |n = Mult|ipleResu|
|00000da0| 6c 74 73 65 74 4f 70 65 | 6e 08 80 04 00 00 00 08 |ltsetOpe|n.......|
|00000db0| 53 65 72 76 65 72 28 29 | 01 00 00 00 00 00 00 00 |Server()|........|
|00000dc0| 00 00 00 11 53 74 6f 72 | 65 64 20 50 72 6f 63 65 |....Stor|ed Proce|
|00000dd0| 64 75 72 65 73 00 00 00 | 00 00 00 04 00 00 00 01 |dures...|........|
|00000de0| 00 00 00 01 00 08 80 04 | 00 00 00 06 53 65 72 76 |........|....Serv|
|00000df0| 65 72 02 00 00 00 00 00 | 00 00 ff d2 05 66 75 6e |er......|.....fun|
|00000e00| 63 74 69 6f 6e 20 4d 75 | 6c 74 69 70 6c 65 52 65 |ction Mu|ltipleRe|
|00000e10| 73 75 6c 74 73 65 74 4f | 70 65 6e 28 29 0d 0a 7b |sultsetO|pen()..{|
|00000e20| 0d 0a 09 74 68 69 73 2e | 52 53 43 6f 6e 6e 65 63 |...this.|RSConnec|
|00000e30| 74 69 6f 6e 20 3d 20 74 | 68 69 73 2e 46 69 6e 64 |tion = t|his.Find|
|00000e40| 43 6f 6e 6e 65 63 74 69 | 6f 6e 28 74 68 69 73 2e |Connecti|on(this.|
|00000e50| 44 53 4e 2c 20 74 68 69 | 73 2e 55 49 44 2c 20 74 |DSN, thi|s.UID, t|
|00000e60| 68 69 73 2e 50 57 44 29 | 3b 0d 0a 09 69 66 28 74 |his.PWD)|;...if(t|
|00000e70| 68 69 73 2e 52 53 43 6f | 6e 6e 65 63 74 69 6f 6e |his.RSCo|nnection|
|00000e80| 20 3d 3d 20 6e 75 6c 6c | 29 0d 0a 09 7b 0d 0a 09 | == null|)...{...|
|00000e90| 09 74 68 69 73 2e 52 53 | 43 6f 6e 6e 65 63 74 69 |.this.RS|Connecti|
|00000ea0| 6f 6e 20 3d 20 53 65 72 | 76 65 72 2e 43 72 65 61 |on = Ser|ver.Crea|
|00000eb0| 74 65 4f 62 6a 65 63 74 | 28 22 41 44 4f 44 42 2e |teObject|("ADODB.|
|00000ec0| 43 6f 6e 6e 65 63 74 69 | 6f 6e 22 29 3b 0d 0a 09 |Connecti|on");...|
|00000ed0| 09 74 68 69 73 2e 41 64 | 64 43 6f 6e 6e 65 63 74 |.this.Ad|dConnect|
|00000ee0| 69 6f 6e 28 74 68 69 73 | 2e 44 53 4e 2c 20 74 68 |ion(this|.DSN, th|
|00000ef0| 69 73 2e 55 49 44 2c 20 | 74 68 69 73 2e 50 57 44 |is.UID, |this.PWD|
|00000f00| 2c 20 74 68 69 73 2e 52 | 53 43 6f 6e 6e 65 63 74 |, this.R|SConnect|
|00000f10| 69 6f 6e 29 3b 0d 0a 09 | 7d 0d 0a 09 69 66 28 74 |ion);...|}...if(t|
|00000f20| 68 69 73 2e 52 53 43 6f | 6e 6e 65 63 74 69 6f 6e |his.RSCo|nnection|
|00000f30| 29 0d 0a 09 7b 0d 0a 09 | 09 69 66 28 21 28 74 68 |)...{...|.if(!(th|
|00000f40| 69 73 2e 52 53 43 6f 6e | 6e 65 63 74 69 6f 6e 2e |is.RSCon|nection.|
|00000f50| 53 74 61 74 65 20 26 20 | 31 2f 2a 61 64 53 74 61 |State & |1/*adSta|
|00000f60| 74 65 4f 70 65 6e 2a 2f | 29 29 0d 0a 09 09 7b 0d |teOpen*/|))....{.|
|00000f70| 0a 09 09 09 74 68 69 73 | 2e 52 53 43 6f 6e 6e 65 |....this|.RSConne|
|00000f80| 63 74 69 6f 6e 2e 4f 70 | 65 6e 28 22 64 73 6e 3d |ction.Op|en("dsn=|
|00000f90| 22 20 2b 20 74 68 69 73 | 2e 44 53 4e 20 2b 20 22 |" + this|.DSN + "|
|00000fa0| 3b 75 69 64 3d 22 20 2b | 20 74 68 69 73 2e 55 49 |;uid=" +| this.UI|
|00000fb0| 44 20 2b 20 22 3b 70 77 | 64 3d 22 20 2b 20 74 68 |D + ";pw|d=" + th|
|00000fc0| 69 73 2e 50 57 44 29 3b | 0d 0a 09 09 7d 0d 0a 09 |is.PWD);|....}...|
|00000fd0| 09 74 68 69 73 2e 52 53 | 20 3d 20 53 65 72 76 65 |.this.RS| = Serve|
|00000fe0| 72 2e 43 72 65 61 74 65 | 4f 62 6a 65 63 74 28 22 |r.Create|Object("|
|00000ff0| 41 44 4f 44 42 2e 52 65 | 63 6f 72 64 73 65 74 22 |ADODB.Re|cordset"|
|00001000| 29 3b 0d 0a 09 09 69 66 | 28 74 68 69 73 2e 52 53 |);....if|(this.RS|
|00001010| 29 0d 0a 09 09 7b 0d 0a | 09 09 09 76 61 72 20 76 |)....{..|...var v|
|00001020| 65 72 73 69 6f 6e 20 3d | 20 70 61 72 73 65 46 6c |ersion =| parseFl|
|00001030| 6f 61 74 28 74 68 69 73 | 2e 52 53 43 6f 6e 6e 65 |oat(this|.RSConne|
|00001040| 63 74 69 6f 6e 2e 56 65 | 72 73 69 6f 6e 29 3b 0d |ction.Ve|rsion);.|
|00001050| 0a 09 09 09 69 66 20 28 | 76 65 72 73 69 6f 6e 20 |....if (|version |
|00001060| 3e 20 31 2e 30 29 0d 0a | 09 09 09 7b 0d 0a 09 09 |> 1.0)..|...{....|
|00001070| 09 09 74 68 69 73 2e 52 | 53 2e 43 75 72 73 6f 72 |..this.R|S.Cursor|
|00001080| 4c 6f 63 61 74 69 6f 6e | 20 3d 20 74 68 69 73 2e |Location| = this.|
|00001090| 43 75 72 73 6f 72 4c 6f | 63 61 74 69 6f 6e 3b 0d |CursorLo|cation;.|
|000010a0| 0a 09 09 09 7d 0d 0a 0d | 0a 09 09 09 76 61 72 20 |....}...|....var |
|000010b0| 53 51 4c 20 3d 20 74 68 | 69 73 2e 53 51 4c 3b 0d |SQL = th|is.SQL;.|
|000010c0| 0a 09 09 09 69 66 28 74 | 68 69 73 2e 4f 72 64 65 |....if(t|his.Orde|
|000010d0| 72 42 79 43 6f 6c 20 21 | 3d 20 22 22 29 0d 0a 09 |rByCol !|= "")...|
|000010e0| 09 09 7b 0d 0a 09 09 09 | 09 53 51 4c 20 2b 3d 20 |..{.....|.SQL += |
|000010f0| 22 20 4f 52 44 45 52 20 | 42 59 20 22 20 2b 20 74 |" ORDER |BY " + t|
|00001100| 68 69 73 2e 4f 72 64 65 | 72 42 79 43 6f 6c 3b 0d |his.Orde|rByCol;.|
|00001110| 0a 09 09 09 7d 0d 0a 09 | 09 09 69 66 28 74 68 69 |....}...|..if(thi|
|00001120| 73 2e 50 61 72 61 6d 41 | 72 72 61 79 20 21 3d 20 |s.ParamA|rray != |
|00001130| 6e 75 6c 6c 20 26 26 20 | 74 68 69 73 2e 50 61 72 |null && |this.Par|
|00001140| 61 6d 41 72 72 61 79 2e | 6c 65 6e 67 74 68 20 3e |amArray.|length >|
|00001150| 20 30 29 0d 0a 09 09 09 | 7b 0d 0a 09 09 09 09 2f | 0).....|{....../|
|00001160| 2f 20 73 75 62 73 74 69 | 74 75 74 65 20 70 61 72 |/ substi|tute par|
|00001170| 61 6d 65 74 65 72 73 0d | 0a 09 09 09 09 53 51 4c |ameters.|.....SQL|
|00001180| 20 3d 20 74 68 69 73 2e | 53 75 62 73 74 69 74 75 | = this.|Substitu|
|00001190| 74 65 50 61 72 61 6d 73 | 28 53 51 4c 29 3b 0d 0a |teParams|(SQL);..|
|000011a0| 09 09 09 7d 0d 0a 0d 0a | 09 09 09 74 68 69 73 2e |...}....|...this.|
|000011b0| 52 53 2e 4f 70 65 6e 28 | 53 51 4c 2c 20 74 68 69 |RS.Open(|SQL, thi|
|000011c0| 73 2e 52 53 43 6f 6e 6e | 65 63 74 69 6f 6e 2c 20 |s.RSConn|ection, |
|000011d0| 74 68 69 73 2e 43 75 72 | 73 6f 72 54 79 70 65 2c |this.Cur|sorType,|
|000011e0| 20 74 68 69 73 2e 4c 6f | 63 6b 54 79 70 65 29 3b | this.Lo|ckType);|
|000011f0| 0d 0a 09 09 09 69 66 20 | 28 74 68 69 73 2e 52 53 |.....if |(this.RS|
|00001200| 2e 53 74 61 74 65 20 3d | 3d 20 31 2f 2a 61 64 53 |.State =|= 1/*adS|
|00001210| 74 61 74 65 4f 70 65 6e | 2a 2f 29 0d 0a 09 09 09 |tateOpen|*/).....|
|00001220| 7b 0d 0a 09 09 09 09 74 | 68 69 73 2e 53 75 70 70 |{......t|his.Supp|
|00001230| 6f 72 74 73 41 70 70 72 | 6f 78 50 6f 73 69 74 69 |ortsAppr|oxPositi|
|00001240| 6f 6e 20 3d 20 74 68 69 | 73 2e 52 53 2e 53 75 70 |on = thi|s.RS.Sup|
|00001250| 70 6f 72 74 73 28 30 78 | 34 30 30 30 2f 2a 61 64 |ports(0x|4000/*ad|
|00001260| 41 70 70 72 6f 78 50 6f | 73 69 74 69 6f 6e 2a 2f |ApproxPo|sition*/|
|00001270| 29 3b 0d 0a 09 09 09 09 | 74 68 69 73 2e 53 75 70 |);......|this.Sup|
|00001280| 70 6f 72 74 73 4d 6f 76 | 65 20 3d 20 74 68 69 73 |portsMov|e = this|
|00001290| 2e 52 53 2e 53 75 70 70 | 6f 72 74 73 28 30 78 32 |.RS.Supp|orts(0x2|
|000012a0| 30 30 2f 2a 61 64 4d 6f | 76 65 50 72 65 76 69 6f |00/*adMo|vePrevio|
|000012b0| 75 73 2a 2f 29 3b 0d 0a | 09 09 09 09 74 68 69 73 |us*/);..|....this|
|000012c0| 2e 53 75 70 70 6f 72 74 | 73 43 6f 75 6e 74 20 3d |.Support|sCount =|
|000012d0| 20 74 68 69 73 2e 52 53 | 2e 52 65 63 6f 72 64 43 | this.RS|.RecordC|
|000012e0| 6f 75 6e 74 20 21 3d 20 | 2d 31 3b 0d 0a 09 09 09 |ount != |-1;.....|
|000012f0| 09 74 68 69 73 2e 52 65 | 73 74 6f 72 65 53 74 61 |.this.Re|storeSta|
|00001300| 74 65 28 29 3b 0d 0a 09 | 09 09 7d 0d 0a 09 09 09 |te();...|..}.....|
|00001310| 2f 2a 20 73 74 61 74 65 | 20 69 73 20 63 6c 6f 73 |/* state| is clos|
|00001320| 65 64 20 2a 2f 0d 0a 20 | 20 20 65 6c 73 65 0d 0a |ed */.. | else..|
|00001330| 09 09 09 7b 0d 0a 20 20 | 20 20 20 77 68 69 6c 65 |...{.. | while|
|00001340| 20 28 28 5b 72 65 63 6f | 72 64 73 65 74 5d 2e 52 | (([reco|rdset].R|
|00001350| 53 2e 53 74 61 74 65 20 | 21 3d 20 31 29 20 26 26 |S.State |!= 1) &&|
|00001360| 20 28 5b 72 65 63 6f 72 | 64 73 65 74 5d 2e 52 53 | ([recor|dset].RS|
|00001370| 20 21 3d 20 6e 75 6c 6c | 29 29 0d 0a 20 20 20 20 | != null|)).. |
|00001380| 20 7b 0d 0a 20 20 20 20 | 20 20 20 20 5b 72 65 63 | {.. | [rec|
|00001390| 6f 72 64 73 65 74 5d 2e | 52 53 20 3d 20 74 68 69 |ordset].|RS = thi|
|000013a0| 73 2e 52 53 2e 4e 65 78 | 74 52 65 63 6f 72 64 73 |s.RS.Nex|tRecords|
|000013b0| 65 74 28 29 3b 0d 0a 20 | 20 20 20 20 7d 0d 0a 09 |et();.. | }...|
|000013c0| 09 09 7d 0d 0a 09 09 7d | 0d 0a 09 7d 0d 0a 7d 01 |..}....}|...}..}.|
|000013d0| 00 00 00 ff b4 05 53 75 | 62 20 4d 75 6c 74 69 70 |......Su|b Multip|
|000013e0| 6c 65 52 65 73 75 6c 74 | 73 65 74 4f 70 65 6e 28 |leResult|setOpen(|
|000013f0| 29 0d 0a 0d 0a 09 74 68 | 69 73 2e 52 53 43 6f 6e |).....th|is.RSCon|
|00001400| 6e 65 63 74 69 6f 6e 20 | 3d 20 74 68 69 73 2e 46 |nection |= this.F|
|00001410| 69 6e 64 43 6f 6e 6e 65 | 63 74 69 6f 6e 28 74 68 |indConne|ction(th|
|00001420| 69 73 2e 44 53 4e 2c 20 | 74 68 69 73 2e 55 49 44 |is.DSN, |this.UID|
|00001430| 2c 20 74 68 69 73 2e 50 | 57 44 29 0d 0a 0d 0a 09 |, this.P|WD).....|
|00001440| 69 66 28 74 68 69 73 2e | 52 53 43 6f 6e 6e 65 63 |if(this.|RSConnec|
|00001450| 74 69 6f 6e 20 3d 20 6e | 75 6c 6c 29 20 54 68 65 |tion = n|ull) The|
|00001460| 6e 0d 0a 09 09 74 68 69 | 73 2e 52 53 43 6f 6e 6e |n....thi|s.RSConn|
|00001470| 65 63 74 69 6f 6e 20 3d | 20 53 65 72 76 65 72 2e |ection =| Server.|
|00001480| 43 72 65 61 74 65 4f 62 | 6a 65 63 74 28 22 41 44 |CreateOb|ject("AD|
|00001490| 4f 44 42 2e 43 6f 6e 6e | 65 63 74 69 6f 6e 22 29 |ODB.Conn|ection")|
|000014a0| 0d 0a 09 09 43 61 6c 6c | 20 74 68 69 73 2e 41 64 |....Call| this.Ad|
|000014b0| 64 43 6f 6e 6e 65 63 74 | 69 6f 6e 28 74 68 69 73 |dConnect|ion(this|
|000014c0| 2e 44 53 4e 2c 20 74 68 | 69 73 2e 55 49 44 2c 20 |.DSN, th|is.UID, |
|000014d0| 74 68 69 73 2e 50 57 44 | 2c 20 74 68 69 73 2e 52 |this.PWD|, this.R|
|000014e0| 53 43 6f 6e 6e 65 63 74 | 69 6f 6e 29 0d 0a 09 45 |SConnect|ion)...E|
|000014f0| 6e 64 20 49 66 0d 0a 0d | 0a 09 69 66 28 74 68 69 |nd If...|..if(thi|
|00001500| 73 2e 52 53 43 6f 6e 6e | 65 63 74 69 6f 6e 29 20 |s.RSConn|ection) |
|00001510| 54 68 65 6e 0d 0a 09 09 | 69 66 28 4e 6f 74 28 74 |Then....|if(Not(t|
|00001520| 68 69 73 2e 52 53 43 6f | 6e 6e 65 63 74 69 6f 6e |his.RSCo|nnection|
|00001530| 2e 53 74 61 74 65 20 26 | 20 31 29 29 20 54 68 65 |.State &| 1)) The|
|00001540| 6e 0d 0a 09 09 20 09 43 | 61 6c 6c 20 74 68 69 73 |n.... .C|all this|
|00001550| 2e 52 53 43 6f 6e 6e 65 | 63 74 69 6f 6e 2e 4f 70 |.RSConne|ction.Op|
|00001560| 65 6e 28 22 64 73 6e 3d | 22 20 26 20 74 68 69 73 |en("dsn=|" & this|
|00001570| 2e 44 53 4e 20 26 20 22 | 3b 75 69 64 3d 22 20 26 |.DSN & "|;uid=" &|
|00001580| 20 74 68 69 73 2e 55 49 | 44 20 26 20 22 3b 70 77 | this.UI|D & ";pw|
|00001590| 64 3d 22 20 26 20 74 68 | 69 73 2e 50 57 44 29 0d |d=" & th|is.PWD).|
|000015a0| 0a 09 09 45 6e 64 20 49 | 66 0d 0a 0d 0a 09 09 74 |...End I|f......t|
|000015b0| 68 69 73 2e 52 53 20 3d | 20 53 65 72 76 65 72 2e |his.RS =| Server.|
|000015c0| 43 72 65 61 74 65 4f 62 | 6a 65 63 74 28 22 41 44 |CreateOb|ject("AD|
|000015d0| 4f 44 42 2e 52 65 63 6f | 72 64 73 65 74 22 29 0d |ODB.Reco|rdset").|
|000015e0| 0a 09 09 69 66 28 74 68 | 69 73 2e 52 53 29 20 54 |...if(th|is.RS) T|
|000015f0| 68 65 6e 0d 0a 09 09 09 | 76 65 72 73 69 6f 6e 20 |hen.....|version |
|00001600| 3d 20 70 61 72 73 65 46 | 6c 6f 61 74 28 74 68 69 |= parseF|loat(thi|
|00001610| 73 2e 52 53 43 6f 6e 6e | 65 63 74 69 6f 6e 2e 56 |s.RSConn|ection.V|
|00001620| 65 72 73 69 6f 6e 29 0d | 0a 09 09 09 69 66 20 28 |ersion).|....if (|
|00001630| 76 65 72 73 69 6f 6e 20 | 3e 20 31 2e 30 29 20 54 |version |> 1.0) T|
|00001640| 68 65 6e 0d 0a 09 09 09 | 09 74 68 69 73 2e 52 53 |hen.....|.this.RS|
|00001650| 2e 43 75 72 73 6f 72 4c | 6f 63 61 74 69 6f 6e 20 |.CursorL|ocation |
|00001660| 3d 20 74 68 69 73 2e 43 | 75 72 73 6f 72 4c 6f 63 |= this.C|ursorLoc|
|00001670| 61 74 69 6f 6e 0d 0a 09 | 09 09 45 6e 64 20 49 66 |ation...|..End If|
|00001680| 0d 0a 0d 0a 09 09 09 53 | 51 4c 20 3d 20 74 68 69 |.......S|QL = thi|
|00001690| 73 2e 53 51 4c 0d 0a 09 | 09 09 69 66 28 74 68 69 |s.SQL...|..if(thi|
|000016a0| 73 2e 4f 72 64 65 72 42 | 79 43 6f 6c 20 3c 3e 20 |s.OrderB|yCol <> |
|000016b0| 22 22 29 20 54 68 65 6e | 0d 0a 09 09 09 09 53 51 |"") Then|......SQ|
|000016c0| 4c 20 3d 20 53 51 4c 20 | 26 20 22 20 4f 52 44 45 |L = SQL |& " ORDE|
|000016d0| 52 20 42 59 20 22 20 26 | 20 74 68 69 73 2e 4f 72 |R BY " &| this.Or|
|000016e0| 64 65 72 42 79 43 6f 6c | 0d 0a 09 09 20 45 6e 64 |derByCol|.... End|
|000016f0| 20 49 66 0d 0a 0d 0a 09 | 09 09 69 66 28 74 68 69 | If.....|..if(thi|
|00001700| 73 2e 50 61 72 61 6d 41 | 72 72 61 79 20 3c 3e 20 |s.ParamA|rray <> |
|00001710| 6e 75 6c 6c 20 41 4e 44 | 20 74 68 69 73 2e 50 61 |null AND| this.Pa|
|00001720| 72 61 6d 41 72 72 61 79 | 2e 6c 65 6e 67 74 68 20 |ramArray|.length |
|00001730| 3e 20 30 29 20 54 68 65 | 6e 0d 0a 09 09 09 09 72 |> 0) The|n......r|
|00001740| 65 6d 20 73 75 62 73 74 | 69 74 75 74 65 20 70 61 |em subst|itute pa|
|00001750| 72 61 6d 65 74 65 72 73 | 0d 0a 09 09 09 09 53 51 |rameters|......SQ|
|00001760| 4c 20 3d 20 74 68 69 73 | 2e 53 75 62 73 74 69 74 |L = this|.Substit|
|00001770| 75 74 65 50 61 72 61 6d | 73 28 53 51 4c 29 0d 0a |uteParam|s(SQL)..|
|00001780| 09 09 09 45 6e 64 20 49 | 66 0d 0a 0d 0a 09 09 09 |...End I|f.......|
|00001790| 43 61 6c 6c 20 74 68 69 | 73 2e 52 53 2e 4f 70 65 |Call thi|s.RS.Ope|
|000017a0| 6e 28 53 51 4c 2c 20 74 | 68 69 73 2e 52 53 43 6f |n(SQL, t|his.RSCo|
|000017b0| 6e 6e 65 63 74 69 6f 6e | 2c 20 74 68 69 73 2e 43 |nnection|, this.C|
|000017c0| 75 72 73 6f 72 54 79 70 | 65 2c 20 74 68 69 73 2e |ursorTyp|e, this.|
|000017d0| 4c 6f 63 6b 54 79 70 65 | 29 0d 0a 0d 0a 09 09 09 |LockType|).......|
|000017e0| 69 66 20 28 74 68 69 73 | 2e 52 53 2e 53 74 61 74 |if (this|.RS.Stat|
|000017f0| 65 20 3d 20 31 29 20 54 | 68 65 6e 0d 0a 09 09 09 |e = 1) T|hen.....|
|00001800| 09 74 68 69 73 2e 53 75 | 70 70 6f 72 74 73 41 70 |.this.Su|pportsAp|
|00001810| 70 72 6f 78 50 6f 73 69 | 74 69 6f 6e 20 3d 20 74 |proxPosi|tion = t|
|00001820| 68 69 73 2e 52 53 2e 53 | 75 70 70 6f 72 74 73 28 |his.RS.S|upports(|
|00001830| 31 36 33 38 34 29 0d 0a | 09 09 09 09 74 68 69 73 |16384)..|....this|
|00001840| 2e 53 75 70 70 6f 72 74 | 73 4d 6f 76 65 20 3d 20 |.Support|sMove = |
|00001850| 74 68 69 73 2e 52 53 2e | 53 75 70 70 6f 72 74 73 |this.RS.|Supports|
|00001860| 28 35 31 32 29 0d 0a 09 | 09 09 09 74 68 69 73 2e |(512)...|...this.|
|00001870| 53 75 70 70 6f 72 74 73 | 43 6f 75 6e 74 20 3d 20 |Supports|Count = |
|00001880| 74 68 69 73 2e 52 53 2e | 52 65 63 6f 72 64 43 6f |this.RS.|RecordCo|
|00001890| 75 6e 74 20 3c 3e 20 2d | 31 0d 0a 09 09 09 09 43 |unt <> -|1......C|
|000018a0| 61 6c 6c 20 74 68 69 73 | 2e 52 65 73 74 6f 72 65 |all this|.Restore|
|000018b0| 53 74 61 74 65 28 29 0d | 0a 20 20 20 0d 0a 20 20 |State().|. .. |
|000018c0| 20 20 72 65 6d 20 73 74 | 61 74 65 20 69 73 20 63 | rem st|ate is c|
|000018d0| 6c 6f 73 65 64 20 0d 0a | 20 20 20 65 6c 73 65 0d |losed ..| else.|
|000018e0| 0a 20 20 20 20 20 77 68 | 69 6c 65 20 28 28 5b 72 |. wh|ile (([r|
|000018f0| 65 63 6f 72 64 73 65 74 | 5d 2e 52 53 2e 53 74 61 |ecordset|].RS.Sta|
|00001900| 74 65 20 3c 3e 20 31 29 | 20 41 4e 44 20 28 5b 72 |te <> 1)| AND ([r|
|00001910| 65 63 6f 72 64 73 65 74 | 5d 2e 52 53 20 3c 3e 20 |ecordset|].RS <> |
|00001920| 6e 75 6c 6c 29 29 0d 0a | 20 20 20 20 20 20 20 20 |null))..| |
|00001930| 5b 72 65 63 6f 72 64 73 | 65 74 5d 2e 52 53 20 3d |[records|et].RS =|
|00001940| 20 74 68 69 73 2e 52 53 | 2e 4e 65 78 74 52 65 63 | this.RS|.NextRec|
|00001950| 6f 72 64 73 65 74 28 29 | 0d 0a 20 20 20 20 20 77 |ordset()|.. w|
|00001960| 65 6e 64 0d 0a 09 09 09 | 45 6e 64 20 49 66 0d 0a |end.....|End If..|
|00001970| 09 09 45 6e 64 20 49 66 | 0d 0a 09 45 6e 64 20 49 |..End If|...End I|
|00001980| 66 0d 0a 45 6e 64 20 53 | 75 62 8e 4a 04 05 99 96 |f..End S|ub.J....|
|00001990| d2 11 81 82 00 60 08 c8 | 6a cf 01 00 00 00 24 33 |.....`..|j.....$3|
|000019a0| 37 37 41 43 34 33 30 2d | 36 32 31 31 2d 31 31 44 |77AC430-|6211-11D|
|000019b0| 32 2d 38 31 31 37 2d 30 | 30 36 30 30 38 43 38 36 |2-8117-0|06008C86|
|000019c0| 43 32 35 03 33 2e 30 ff | 0f 03 54 68 69 73 20 43 |C25.3.0.|..This C|
|000019d0| 6f 6e 74 72 61 63 74 20 | 63 61 6e 20 62 65 20 61 |ontract |can be a|
|000019e0| 70 70 6c 69 65 64 20 74 | 6f 20 61 20 72 65 63 6f |pplied t|o a reco|
|000019f0| 72 64 73 65 74 20 77 68 | 69 63 68 20 69 73 20 62 |rdset wh|ich is b|
|00001a00| 61 73 65 64 20 6f 6e 20 | 61 20 73 74 6f 72 65 64 |ased on |a stored|
|00001a10| 20 70 72 6f 63 65 64 75 | 72 65 20 63 61 6c 6c 2e | procedu|re call.|
|00001a20| 20 20 49 66 20 74 68 65 | 20 73 74 6f 72 65 64 20 | If the| stored |
|00001a30| 70 72 6f 63 65 64 75 72 | 65 20 79 6f 75 20 61 72 |procedur|e you ar|
|00001a40| 65 20 63 61 6c 6c 69 6e | 67 20 75 73 65 73 20 61 |e callin|g uses a|
|00001a50| 20 63 75 72 73 6f 72 20 | 6f 72 20 63 6f 6e 74 61 | cursor |or conta|
|00001a60| 69 6e 73 20 6d 75 6c 74 | 69 70 6c 65 20 73 65 6c |ins mult|iple sel|
|00001a70| 65 63 74 20 73 74 61 74 | 65 6d 65 6e 74 73 2c 20 |ect stat|ements, |
|00001a80| 79 6f 75 20 77 69 6c 6c | 20 6e 65 65 64 20 74 6f |you will| need to|
|00001a90| 20 61 64 64 20 74 68 69 | 73 20 69 6e 74 65 72 61 | add thi|s intera|
|00001aa0| 63 74 69 6f 6e 20 74 6f | 20 79 6f 75 72 20 72 65 |ction to| your re|
|00001ab0| 63 6f 72 64 73 65 74 2e | 20 20 54 68 65 20 69 6e |cordset.| The in|
|00001ac0| 74 65 72 61 63 74 69 6f | 6e 20 77 69 6c 6c 20 6c |teractio|n will l|
|00001ad0| 6f 63 61 74 65 20 74 68 | 65 20 66 69 72 73 74 20 |ocate th|e first |
|00001ae0| 6f 70 65 6e 20 72 65 73 | 75 6c 74 20 73 65 74 20 |open res|ult set |
|00001af0| 72 65 74 75 72 6e 65 64 | 20 62 79 20 74 68 65 20 |returned| by the |
|00001b00| 73 74 6f 72 65 64 20 70 | 72 6f 63 65 64 75 72 65 |stored p|rocedure|
|00001b10| 2e 20 20 57 68 65 6e 20 | 53 51 4c 20 53 65 72 76 |. When |SQL Serv|
|00001b20| 65 72 20 73 74 6f 72 65 | 64 20 70 72 6f 63 65 64 |er store|d proced|
|00001b30| 75 72 65 73 20 69 6e 63 | 6c 75 64 65 20 63 75 72 |ures inc|lude cur|
|00001b40| 73 6f 72 73 2c 20 74 68 | 65 79 20 6f 66 74 65 6e |sors, th|ey often|
|00001b50| 20 72 65 74 75 72 6e 20 | 65 6d 70 74 79 20 72 65 | return |empty re|
|00001b60| 73 75 6c 74 20 73 65 74 | 73 20 62 65 66 6f 72 65 |sult set|s before|
|00001b70| 20 72 65 74 75 72 6e 69 | 6e 67 20 74 68 65 20 66 | returni|ng the f|
|00001b80| 69 6e 61 6c 20 72 65 73 | 75 6c 74 20 73 65 74 2e |inal res|ult set.|
|00001b90| 20 20 54 6f 20 61 70 70 | 6c 79 20 74 68 69 73 20 | To app|ly this |
|00001ba0| 63 6f 6e 74 72 61 63 74 | 20 73 65 6c 65 63 74 20 |contract| select |
|00001bb0| 61 20 72 65 63 6f 72 64 | 73 65 74 20 6c 69 6e 6b |a record|set link|
|00001bc0| 65 64 20 74 6f 20 61 20 | 53 74 6f 72 65 64 20 50 |ed to a |Stored P|
|00001bd0| 72 6f 63 65 64 75 72 65 | 20 63 6f 6e 74 65 6e 74 |rocedure| content|
|00001be0| 20 74 61 62 6c 65 2e 20 | 20 4c 69 73 74 20 61 6c | table. | List al|
|00001bf0| 6c 20 70 6f 73 73 69 62 | 6c 65 20 69 6e 74 65 72 |l possib|le inter|
|00001c00| 61 63 74 69 6f 6e 73 2e | 0d 0a 0d 0a 4e 4f 54 45 |actions.|....NOTE|
|00001c10| 3a 20 54 68 65 20 56 42 | 20 53 63 72 69 70 74 20 |: The VB| Script |
|00001c20| 76 65 72 73 69 6f 6e 20 | 6f 66 20 74 68 69 73 20 |version |of this |
|00001c30| 63 6f 6e 74 72 61 63 74 | 20 6d 61 79 20 6e 6f 74 |contract| may not|
|00001c40| 20 77 6f 72 6b 20 61 74 | 20 61 6c 6c 20 74 69 6d | work at| all tim|
|00001c50| 65 73 2e 20 20 42 65 63 | 61 75 73 65 20 74 68 65 |es. Bec|ause the|
|00001c60| 20 63 6f 6e 74 72 61 63 | 74 20 75 73 65 73 20 61 | contrac|t uses a|
|00001c70| 6e 20 6f 62 6a 65 63 74 | 20 6f 72 69 65 6e 74 65 |n object| oriente|
|00001c80| 64 20 6d 65 74 68 6f 64 | 20 74 6f 20 72 65 70 6c |d method| to repl|
|00001c90| 61 63 65 20 74 68 65 20 | 52 65 63 6f 72 64 73 65 |ace the |Recordse|
|00001ca0| 74 20 4f 70 65 6e 20 6d | 65 74 68 6f 64 2c 20 56 |t Open m|ethod, V|
|00001cb0| 42 20 53 63 72 69 70 74 | 20 6d 61 79 20 6e 6f 74 |B Script| may not|
|00001cc0| 20 61 6c 77 61 79 73 20 | 73 75 70 70 6f 72 74 20 | always |support |
|00001cd0| 74 68 69 73 2e 0d 0a 0d | 0a |this....|. |
+--------+-------------------------+-------------------------+--------+--------+